package com.soft.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 实体：权限（表 permission）
 * 描述：按用户/团队/日程三者维度定义权限来源；isInherited 标记是否继承团队默认权限。
 */
@TableName("permission")
public class Permission {
     // 主键，自增
    @TableId(type = IdType.AUTO)
    private Integer permissionId;
    
     // 用户 ID
    private Integer userId;
    
     // 团队 ID
    private Integer teamId;
    
     // 日程 ID
    private Integer scheduleId;
    
     // 是否继承（true 表示由团队默认权限继承）
    private Boolean isInherited;

    public Integer getPermissionId() {
        return permissionId;
    }

    public void setPermissionId(Integer permissionId) {
        this.permissionId = permissionId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getTeamId() {
        return teamId;
    }

    public void setTeamId(Integer teamId) {
        this.teamId = teamId;
    }

    public Integer getScheduleId() {
        return scheduleId;
    }

    public void setScheduleId(Integer scheduleId) {
        this.scheduleId = scheduleId;
    }

    public Boolean getIsInherited() {
        return isInherited;
    }

    public void setIsInherited(Boolean isInherited) {
        this.isInherited = isInherited;
    }
}
